package com.wjl.shop.controller;

import com.wjl.shop.entity.DealerAddress;
import com.wjl.shop.service.DealerAddressService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 经销商------地址关系表(DealerAddress)表控制层
 *
 * @author makejava
 * @since 2021-10-06 14:43:19
 */
@RestController
@RequestMapping("dealerAddress")
@CrossOrigin
public class DealerAddressController {
    /**
     * 服务对象
     */
    @Resource
    private DealerAddressService dealerAddressService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public DealerAddress selectOne(Integer id) {
        return this.dealerAddressService.queryById(id);
    }

}
